using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WebFoundation;
using WebFoundation.Data;
using MHI.InspectionManager.Data; 
using MHI.InspectionManager.Interfaces; 

namespace MHI.InspectionManager.Business
{
	/// <summary>
	/// DevInspectionstepTList, table list:dev_inspectionstep_t 
	/// </summary>
	internal class DevInspectionstepTList : BaseWritableEntities<DevInspectionstepT>, IDevInspectionstepTList
	{
		private DevInspectionstepTQueryDAO _queryDAO;
		private DevInspectionstepTWritingDAO _writeDAO;

		public DevInspectionstepTList(DevInspectionstepTQueryDAO queryDao, DevInspectionstepTWritingDAO writtingDao) : base(queryDao, writtingDao)
		{
			this._queryDAO = queryDao;
			this._writeDAO = writtingDao;
		}

		/// <summary>
		/// 获取所有DevInspectionstepT,table items:dev_inspectionstep_t信息 
		/// </summary>
		/// <returns></returns>
		public IEnumerable<DevInspectionstepT> GetDevInspectionstepTAllItems()
		{
			return _queryDAO.GetDevInspectionstepTAllItems().ToList();
		}

		/// <summary>
		/// 根据id，获取所有DevInspectionstepT,table items:dev_inspectionstep_t信息 
		/// </summary>
		/// <returns></returns>
		public IEnumerable<DevInspectionstepT> GetDevInspectionstepTItemsById(int id)
		{
			return _queryDAO.GetDevInspectionstepTItemsById(id);
		}

		/// <summary>
		/// 根据inspectionpointId，获取所有DevInspectionstepT,table items:dev_inspectionstep_t信息 
		/// </summary>
		/// <returns></returns>
		public IEnumerable<DevInspectionstepT> GetDevInspectionstepTItemsByInspectionpointId(int inspectionpointId)
		{
			return _queryDAO.GetDevInspectionstepTItemsByInspectionpointId(inspectionpointId);
		}

		/// <summary>
		/// 根据deviceId，获取所有DevInspectionstepT,table items:dev_inspectionstep_t信息 
		/// </summary>
		/// <returns></returns>
		public IEnumerable<DevInspectionstepT> GetDevInspectionstepTItemsByDeviceId(int deviceId)
		{
			return _queryDAO.GetDevInspectionstepTItemsByDeviceId(deviceId);
		}

		/// <summary>
		/// 增加一行DevInspectionstepT,table item:dev_inspectionstep_t信息 
		/// </summary>
		/// <returns></returns>
		public bool AddDevInspectionstepT(DevInspectionstepT item)
		{
			return this._writeDAO.AddDevInspectionstepT(item);
		}

		/// <summary>
		/// 增加多行DevInspectionstepT,table items:dev_inspectionstep_t信息 
		/// </summary>
		/// <returns></returns>
		public bool AddDevInspectionstepTs(DevInspectionstepT[] items)
		{
			return this._writeDAO.AddDevInspectionstepTs(items);
		}

		/// <summary>
		/// 更新一行DevInspectionstepT,table item:dev_inspectionstep_t信息 
		/// </summary>
		/// <returns></returns>
		public bool UpdateDevInspectionstepT(DevInspectionstepT item)
		{
			return this._writeDAO.UpdateDevInspectionstepT(item);
		}

		/// <summary>
		///  更新多行DevInspectionstepT,table items:dev_inspectionstep_t信息 
		/// </summary>
		/// <returns></returns>
		public bool UpdateDevInspectionstepTs(DevInspectionstepT[] items)
		{
			return this._writeDAO.UpdateDevInspectionstepTs(items);
		}

		/// <summary>
		/// 删除一行DevInspectionstepT,table item:dev_inspectionstep_t信息 
		/// </summary>
		/// <returns></returns>
		public bool DeleteDevInspectionstepT(DevInspectionstepT item)
		{
			return this._writeDAO.DeleteDevInspectionstepT(item);
		}

		/// <summary>
		///  删除多行DevInspectionstepT,table items:dev_inspectionstep_t信息 
		/// </summary>
		/// <returns></returns>
		public bool DeleteDevInspectionstepTs(DevInspectionstepT[] items)
		{
			return this._writeDAO.DeleteDevInspectionstepTs(items);
		}

		/// <summary>
		///  根据ids，删除多行DevInspectionstepT,table entity:dev_inspectionstep_t信息 
		/// </summary>
		/// <returns></returns>
		public bool DeleteDevInspectionstepTByIds(int[] ids)
		{
			return this._writeDAO.DeleteDevInspectionstepTByIds(ids);
		}

	}
}
